/**题目
 * https://ac.nowcoder.com/acm/contest/12949/A
 */

import java.util.Arrays;
import java.util.Scanner;

public class main1 {
    public static void main(String[] args) {
        Scanner ss = new Scanner(System.in);
        int n = ss.nextInt();
        int h = ss.nextInt();   //本来可以跳到高度
        int u = ss.nextInt();   //目标高度
        int[] a = new int[n];
        for(int i=0;i<n;i++){
            a[i] = ss.nextInt();
        }
        int high = u-h;         //高度差
        int sum=0;
        Arrays.sort(a);
        for(int i=n-1;i>=0;i--){
            if(high<=0) {
                System.out.println(sum);
                break;
            }
            high-=a[i];
            sum++;

        }



    }
}
